NULL = 

#GTK_CFLAGS= \
#	    -I/usr/include/gtk-2.0 \
#	    -I/usr/lib/gtk-2.0/include \
#	    -I/usr/include/atk-1.0 \
#	    -I/usr/include/cairo \
#	    -I/usr/include/pango-1.0 \
#	    -I/usr/include/glib-2.0 \
#	    -I/usr/lib/glib-2.0/include \
#	    -I/usr/include/freetype2 \
#	    -I/usr/include/libpng12 \
#	    -I/usr/include/pixman-1

#LIBEDATA_CFLAGS=\
#		-DORBIT2=1 \
#		-pthread \
#		-I/usr/include/evolution-data-server-2.22 \
#		-I/usr/include/libgnome-2.0 \
#		-I/usr/include/libbonobo-2.0 \
#		-I/usr/include/gnome-vfs-2.0 \
#		-I/usr/lib/gnome-vfs-2.0/include \
#		-I/usr/include/orbit-2.0 -I/usr/include/gconf/2 \
#		-I/usr/include/glib-2.0 \
#		-I/usr/lib/glib-2.0/include \
#		-I/usr/include/bonobo-activation-2.0 \
#		-I/usr/include/libxml2  

LIBROB_CFLAGS=-I$(prefix)/include/rob \
	      -I$(prefix)/include/glib-2.0 \
	      -I$(prefix)/lib/glib-2.0/include \
	      $(NULL)

#GYPSY_CFLAGS = -I/usr/include/dbus-1.0 \
#	       -I/usr/lib/dbus-1.0/include \
#	       -I/usr/include/glib-2.0 \
#	       -I/usr/lib/glib-2.0/include  \
#	       $(NULL)


AUTOMAKE_OPTIONS = subdir-objects

SUBDIRS = \
	po \
	$(NULL)

pkgdir=/usr/lib/rob

pkg_LTLIBRARIES = librobmodules.la




AM_CPPFLAGS = \
	$(MODULES_CFLAGS) \
	$(GTK_CFLAGS) \
	$(GMODULE_CFLAGS) \
	$(LIBEDATA_CFLAGS) \
	$(LIBROB_CFLAGS) \
	$(GYPSY_CFLAGS) \
	-include $(CONFIG_HEADER) \
	-I$(tob_srcdir)/src \
	$(NULL)

librobmodules_la_CFLAGS=`pkg-config --cflags gtk+-2.0 librob-1.0 gmodule-2.0 libecal-1.2 dbus-glib-1 libedata-cal-1.2 gypsy gstreamer-0.10 gstreamer-base-0.10`
librobmodules_la_LDFLAGS=`pkg-config --libs gtk+-2.0 librob-1.0 gmodule-2.0 libecal-1.2 dbus-glib-1 libedata-cal-1.2 gypsy gstreamer-0.10 gstreamer-base-0.10`

BUILT_SOURCES = src/modules.vala.stamp

#bin_PROGRAMS = modules

librobmodules_la_VALASOURCES = \
	src/action/robanswercall.vala \
	src/rule/robtimewidget.vala \
	src/rule/robtime.vala \
	src/rule/robcalendar.vala \
	src/rule/robgps.vala \
	src/action/robruncommand.vala \
	src/action/robsendsms.vala \
	$(NULL)

#src/action/answerasterisk.vala 



librobmodules_la_SOURCES = \
	$(librobmodules_la_VALASOURCES:.vala=.c) \
	$(librobmodules_la_VALASOURCES:.vala=.h) \
	$(NULL)

src/modules.vala.stamp: $(librobmodules_la_VALASOURCES)
	$(VALAC) -C --save-temps --pkg=gypsy --pkg=gstreamer-0.10 --pkg=librob-1.0 --pkg=gtk+-2.0 --pkg=libecal-1.2 --pkg=dbus-glib-1 --basedir $(top_srcdir) $^
	touch $@

librobmodules_LDADD = \
	$(LIBROBMODULES_LIBS) \
	$(NULL)

headerdir=/usr/include/rob

header_DATA= \
	     $(librobmodules_la_VALASOURCES:.vala=.h) \
	     $(NULL)

EXTRA_DIST = \
	intltool-extract.in \
	intltool-update.in \
	intltool-merge.in \
	$(librobmodules_la_VALASOURCES) \
	src/modules.vala.stamp \
	$(NULL)

DISTCLEANFILES = \
	intltool-extract \
	intltool-update \
	intltool-merge \
	po/.intltool-merge-cache \
	$(NULL)

